AudioClip description ...


Properties


FileType

AudioFileType FileType

Gets the file type of this audio clip. This is useful in conjunction with the PlayFrom and Seek commands to determine what the position offset represents.


IsAvailable

bool IsAvailable

Gets whether this audio clip is available on the player's system.


Type

AudioType Type

Gets the type of this audio clip, as initially set in the editor. The AudioType allows you to group audio clips into areas such as Sound and Music.


Methods


Load

void Load(bool keepInMemory)

Loads but does not play AudioClip. Useful for time-sensitive audio. Can optionally keep the clip in memory so that it is never reclaimed. Useful for regularly-used audio.


Play

AudioChannel Play()  
AudioChannel Play(AudioPriority audioPriority)  
AudioChannel Play(RepeatStyle repeatStyle)  
AudioChannel Play(AudioPriority audioPriority, RepeatStyle repeatStyle)

Plays the audio clip using the given priority and repeatstyle.


PlayFrom

Plays the audio clip, starting from position, using given priority and repeatstyle.


PlayQueued

Plays the audio clip, or queues it to be played later if it cannot be played now. Uses given priority and repeatstyle.


Stop

void Stop()

Stops all currently playing instances of this audio clip.